import Cookies from 'js-cookie'
let domain =  window.location.host
class Token {
    constructor(data) {
        this.user = data
    }

    saveToLocal() {
        console.error(11111,this.user,domain)
        Cookies.set('user', this.user, {
            expires: 7,
            // domain: domain,
        })
    }

    static getRegion() {
        let user = Cookies.get('user')
        return user
    }

}

export default Token